package com.hhkj.study.admin.resource.model.req;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author luowu
 * @Date 2024/12/9 涵 11:42:31
 */
@Data
public class ResourceQuestionBatchSave extends ResourceQuestionBankReq {

    /**
     * 关联外部题库列表
     */
    @NotEmpty(message = "关联外部题库列表不能为空")
    private List<ResourceBankAssocOutBankReq> assocOutBankList;


    @NotNull(message = "课程类型不能为空")
    @Override
    public Long getCourseType() {
        return super.getCourseType();
    }

    @NotNull(message = "题库类型不能为空")
    @Override
    public Long getType() {
        return super.getType();
    }

    @NotNull(message = "年份不能为空")
    @Override
    public String getYear() {
        return super.getYear();
    }

    @NotNull(message = "上架状态不能为空")
    @Override
    public Integer getPublishedFlag() {
        return super.getPublishedFlag();
    }
}
